package utility;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

/**
 * Created by 000001159 on 2016/12/20.
 */
public class BasePage {

    public WebDriver driver;

/*    public WebDriver getDriver() {
        return driver;
    }

    public void setDriver(WebDriver driver) {
        this.driver = driver;
    }*/

    public BasePage(WebDriver driver) {
        PageFactory.initElements(driver,this);
    }

/*    public  WebElement waitVisit(WebDriver driver,WebElement element,long timeout) {
        return  new WebDriverWait(driver,timeout).until(ExpectedConditions.visibilityOf(element));
    }

    public  WebElement waitVisit(WebDriver driver,WebElement element) {
        return  waitVisit(driver,element,30);
    }*/
}
